package com.wu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wu.entity.sys.SRoleResourceDo;
import com.wu.pojo.response.sys.RoleCodeResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色资源中间表 Mapper 接口
 * </p>
 *
 * @author wujilu
 * @since 2020-11-24
 */
public interface SRoleResourceMapper extends BaseMapper<SRoleResourceDo> {

    int countByResourceId(@Param("resourceId") Long resourceId);

    List<RoleCodeResponse> getResourcesByRoleId(@Param("roleId") Long roleId, @Param("ignore") Integer ignore);

}
